<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>



    <!-- <script>
        var d = 5
        function foo() {
            var b = a * 2
            function bar(c) {
                console.log(a, b, c, d);
            }
            bar(b * 3)
        }
        foo()
    </script> -->

    <!-- <script>
        function foo(str,a){
            eval(str)  // var b = 3 
            console.log(a,b);
        }
        var b = 2
        foo('var b=3',1)
    </script> -->

    <script>
        
    </script>
</body>

</html>